export function loadJs(src: string) {
	return new Promise((resolve, reject) => {
		const script = document.createElement('script')
		script.type = 'text/javascript'
		script.src = src
		document.body.appendChild(script)
		script.onload = () => {
			const w = window as any
			resolve(w.originalGameLib)
		}
		script.onerror = (err) => {
			reject(err)
		}
	})
}
